<template>
  <div class="goods">
    <ContentPage :content-table-config="contentTableConfig" page-name="goods">
      <template #imgUrl="xxx">
        <el-image
          style="width: 60px; height: 60px"
          :src="xxx.row.imgUrl"
          :preview-src-list="[xxx.row.imgUrl]"
          lazy
          hide-on-click-modal
          :z-index="2000"
        ></el-image>
      </template>
      <template #oldPrice="xxx">
        {{ '¥' + xxx.row.oldPrice }}
      </template>
      <template #newPrice="xxx">
        {{ '¥' + xxx.row.newPrice }}
      </template>
    </ContentPage>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
import ContentPage from '@/components/content-page'
import { contentTableConfig } from './config/content.config'

export default defineComponent({
  name: 'goods',
  components: { ContentPage },
  setup() {
    return {
      contentTableConfig
    }
  }
})
</script>

<style scoped></style>
